package cn.mandy.sysadmin.common.api;

public class MandyRuntimeException extends RuntimeException {
    private Long code;   // 异常状态码

    public MandyRuntimeException(ResultCode retCode) {
        super(retCode.getMessage());
        code = retCode.getCode();
    }

    public Long getCode() {
        return code;
    }
}

